/* VIm for the win! */
#include <stdio.h>
#define FIRST 102
#define LAST 987

int main (int argc, char **argv)
{
	register short number = FIRST; //also negatives?
	register short thnds, tens, units;

	for ( ; number <= LAST ; number++) {
		thnds = number / 100;
		tens = number / 10 % 10;
		units = number % 10;

		if (thnds != tens && thnds != units
				&& tens != units) {
			printf("%d\n", number);
		}
	}
	return 0;
}
